﻿@model MvcMusicStore.Models.Genre

@{
    ViewBag.Title = "Browse Albums";
}

@*<h2>Browsing Genre: @Model.Name</h2>

<ul>
    @foreach (var album in Model.Albums)
    { 
        <li>@album.Title</li>
        <li>@Html.ActionLink(album.Title, "Details", new { id = album.AlbumId })</li>
    }
</ul>*@

<div class="genre">
    <h3><em>@Model.Name</em> Albums</h3>
    <ul id="album-list">
        @foreach(var album in Model.Albums)
        {
            <li>
                 <a href="@Url.Action("Details",new {id=album.AlbumId})">
                    <img alt="@album.Title" src="@album.AlbumArtUrl" />
                    <span>@album.Title</span>
                 </a>
            </li>
        }
    </ul>
</div>
